<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="fm" uri="http://www.springframework.org/tags/form"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
        <div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>我的审批页面</span>
            </div>
			<div class="search">
                <form method="post" action="${pageContext.request.contextPath }/meeting/approvallist.html">
                    <input name="method" value="query" class="input-text" type="hidden">

                    <select name="queryMeetingStatus">

                        <option value="0">--请选择--</option>
                        <option <c:if test="${'2' == queryMeetingStatus }">selected="selected"</c:if>
                                value="2">待审批</option>
                        <option <c:if test="${'3' == queryMeetingStatus }">selected="selected"</c:if>
                                value="3">审核通过</option>
                        <option <c:if test="${'4' == queryMeetingStatus }">selected="selected"</c:if>
                                value="4">审核不通过</option>

                    </select>

                    <input type="hidden" name="pageIndex" value="1"/>
                    <input	value="查 询" type="submit" id="searchbutton">

                </form>
			</div>
			<!--请在此处添加table表格 -->
            <!--用户-->
            <table class="providerTable" cellpadding="0" cellspacing="0">
                <tr class="firstTr">
                    <th width="10%">会议日期</th>
                    <th width="20%">会议时间</th>
                    <th width="20%">会议主题</th>
                    <th width="15%">申请会议室</th>
                    <th width="10%">申请状态</th>
                    <th width="25%">操作</th>
                </tr>
                <c:forEach var="meeting" items="${ meetList }" varStatus="status">
                    <tr>
                        <td>
                            <span>${meeting.useDate }</span>
                        </td>
                        <td>
                            <c:if test="${meeting.useTime == 0}">
                                <span>无</span>
                            </c:if>
                            <c:if test="${meeting.useTime != 0}">
                                <span>${meeting.startTime }:00-${meeting.endTime }:59</span>
                            </c:if>
                        </td>
                        <td>
                            <span>${meeting.theme}</span>
                        </td>
                        <td>
                            <span>${meeting.roomName}(${meeting.roomLocation})</span>
                        </td>
                        <td>
                            <c:if test="${meeting.status == '2'}">
                                <span>待审批</span>
                            </c:if>
                            <c:if test="${meeting.status == '3'}">
                                <span>审核通过</span>
                            </c:if>
                            <c:if test="${meeting.status == '4'}">
                                <span>审核不通过</span>
                            </c:if>
                        </td>
                        <td>

                            <c:if test="${meeting.status=='2'}">
                                <span><a class="agree" href="javascript:;" meetingid=${meeting.id } >同意</a></span>
                                <span><a class="disagree" href="javascript:;" meetingid=${meeting.id } >不同意</a></span>
                            </c:if>

                        </td>
                    </tr>
                </c:forEach>
            </table>

            <input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
            <c:import url="/WEB-INF/jsp/common/rollpage.jsp">
                <c:param name="totalCount" value="${totalCount}"/>
                <c:param name="currentPageNo" value="${pageIndex}"/>
                <c:param name="totalPageCount" value="${totalPageCount}"/>
            </c:import>
        </div>
		</div>
    </section>


<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<!-- 请注意更新JS脚本路径 -->
<script type="text/javascript" 
	src="${pageContext.request.contextPath }/statics/js/approvelist.js"></script>
